home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / binutils.7 / binutils / binutils-2.7 / ld / mpw-config.in < prev    next >
Encoding:
Text File  |  1996-07-04  |  1.7 KB  |  48 lines

  1. # Configuration fragment for LD.
  2.  
  3. If "{target_canonical}" =~ /m68k-apple-macos/
  4.     Set emulname m68kcoff
  5.     forward-include "{srcdir}"mpw-em68kcoff.c em68kcoff.c
  6.     Set emulation_ofiles "{o}"em68kcoff.c.o
  7.  
  8. Else If "{target_canonical}" =~ /powerpc-apple-macos/
  9.     Set emulname ppcmacos
  10.     forward-include "{srcdir}"mpw-eppcmac.c eppcmacos.c
  11.     Set emulation_ofiles "{o}"eppcmacos.c.o
  12.  
  13. Else If "{target_canonical}" =~ /i386-unknown-go32/
  14.     Set emulname i386go32
  15.     forward-include "{srcdir}"mpw-ei386go32.c ei386go32.c
  16.     Set emulation_ofiles "{o}"ei386go32.c.o
  17.  
  18. Else If "{target_canonical}" =~ /mips-\Option-x-\Option-x/
  19.     Set emulname mipsidt
  20.     forward-include "{srcdir}"mpw-emipsidt.c emipsidt.c
  21.     Set emulation_ofiles "{o}"emipsidt.c.o
  22.  
  23. Else If "{target_canonical}" =~ /sh-hitachi-hms/
  24.     Set emulname sh
  25.     forward-include "{srcdir}"mpw-esh.c esh.c
  26.     Set emulation_ofiles "{o}"esh.c.o
  27. End If
  28.  
  29. Echo '/* This file is automatically generated.  DO NOT EDIT! */' > "{o}"ldemul-tmp.h
  30. Echo "extern ld_emulation_xfer_type ld_{emulname}_emulation;" >> "{o}"ldemul-tmp.h
  31. Echo '#define EMULATION_LIST \'                >> "{o}"ldemul-tmp.h
  32. Echo "  &ld_{emulname}_emulation, \"            >> "{o}"ldemul-tmp.h
  33. Echo '  0'                        >> "{o}"ldemul-tmp.h
  34.  
  35. MoveIfChange "{o}"ldemul-tmp.h "{o}"ldemul-list.h
  36.  
  37. Echo '# From mpw-config.in'                 > "{o}"mk.tmp
  38. Echo "EMUL = " {emulname}                >> "{o}"mk.tmp
  39. Echo "EMULATION_OFILES = " {emulation_ofiles}        >> "{o}"mk.tmp
  40. Echo 'version = ' `Search 'ld version ' {srcdir}ldver.c | sed -e 's/.*ld version \([^ ]*\).*/\1/'` >> "{o}"mk.tmp
  41. Echo "TDEFINES = "                    >> "{o}"mk.tmp
  42. Echo '# End from mpw-config.in'                >> "{o}"mk.tmp
  43.  
  44. Echo '/* config.h.  Generated by mpw-configure.  */'     > "{o}"config.new
  45. Echo '#include "mpw.h"'                    >> "{o}"config.new
  46.  
  47. MoveIfChange "{o}"config.new "{o}"config.h
  48.